package jacquesh.simple.rpc.test.client.contorller;

import jacquesh.simple.rpc.test.HelloService;
import net.jacqeush.mini.rpc.client.annotation.RpcReference;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author Jacquesh
 * @version 1.0
 * @date 2020/10/22 21:23
 */
@RestController("/")
public class HelloController {
    @RpcReference
    HelloService helloService;
    @RequestMapping("/hello")
    public String hello(){
        return helloService.hello();
    }
}
